A Comparison of Constraint Handling Rules with Equivalent Transformation Rules
نویسندگان
چکیده
We have proposed a novel computation framework called Equivalent Transformation (ET). The ET framework is a rewriting system in which computation is executed by rewriting rules. Rewriting rules of the ET framework are called Equivalent Transformation Rules (ETRs). The theory of ET guarantees the correctness of the computation by ETRs. Multi-head ETRs which have multiple atoms in their head part are valid ETRs. Constraint Handling Rules (CHR) are declarative language extension designed for writing user-defined constraints. CHR allows to use multi-head guarded rules for its computation. This paper compares the rewriting rules of ET and CHR, especially multi-head rules. We show that all CHR rules can be simply transformed into correct ETRs preserving their logical meanings. Examples of the correct ETRs which can not be represented as CHR rules are also given. Therefore CHR rules can be regarded as proper subclass of ETRs.
منابع مشابه
Operational Equivalence of Graph Transformation Systems
Graph transformation systems (GTS) provide an important theory for numerous applications. With the growing number of GTSbased applications the comparison of operational equivalence of two GTS becomes an important area of research. This work introduces a notion of operational equivalence for graph transformation systems. The embedding of GTS in constraint handling rules (CHR) provides the basis ...
متن کاملSpecialization of Concurrent Guarded Multi-set Transformation Rules
Program transformation and in particular partial evaluation are appealing techniques for declarative programs to improve not only their performance. This paper presents the first step towards developing program transformation techniques for a concurrent constraint programming language where guarded rules rewrite and augment multi-sets of atomic formulae, called Constraint Handling Rules (CHR). ...
متن کاملConstraint handling rules. Compositional semantics and program transformation
This thesis intends to investigate two aspects of Constraint Handling Rules (CHR). It proposes a compositional semantics and a technique for program transformation. CHR is a concurrent committed-choice constraint logic programming language consisting of guarded rules, which transform multi-sets of atomic formulas (constraints) into simpler ones until exhaustion [Frü06] and it belongs to the dec...
متن کاملProving termination of CHR in Prolog: A transformational approach
In this paper we present a termination preserving transformation from Constraint Handling Rules to Prolog. The transformation is sound w.r.t. termination under the theoretical semantics of Constraint Handling Rules. It does not consider the presence of a propagation history. The transformation allows for the direct reuse of termination proof methods from Logic Programs and Term-Rewrite Systems,...
متن کاملTransformation-based Indexing Techniques for Constraint Handling Rules
Multi-headed rules are essential for the expressiveness of Constraint Handling Rules (CHR), but incur considerable performance overhead. Current indexing techniques are often unable to address this problem—they require matchings to have particular form, or offer good run-time complexity rather than good absolute figures. We introduce two lightweight program transformations, based on term flatte...
متن کامل